package d0317;

public class CreateThreadByExtends extends Thread{
    @Override
    public void run(){
        System.out.println("CreateThreadByExtends is running");
    }

    public static void main(String[] args) {
        CreateThreadByExtends createThreadByExtends=new CreateThreadByExtends();
        //createThreadByExtends.rum();//错误调用，不会产生并发
        createThreadByExtends.start();
    }
}